package com.starbugs.wehcat.pojo;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Configuration
public class SpellChecker {
  public SpellChecker(){
    System.out.println("SpellChecker constructor" );
  }

  @PostConstruct
  private void init(){
    System.out.println("after constructor");
  }

  @PreDestroy
  private void destroy(){
    System.out.println("before destroy");
  }

  public void checkSpelling() {
    System.out.println("SpellChecker checkSpelling..." );
  }
}